package event

fun Int.toEventErrorMsg() : String? = when(this) {
    1 -> "ads"
    else -> null
}

open class EventException(val err: Int, msg: String?) : Exception(msg) {
    constructor(err: Int) : this(err, err.toEventErrorMsg())
}